package zjut.raymond.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author Raymond
 * @Description TODO
 * @date 2021/8/6-22:02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_pdr_loc_log")
public class PDRLocation {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer x;
    private Integer y;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public PDRLocation(Integer x, Integer y, Date updateTime) {
        this.x = x;
        this.y = y;
        this.updateTime = updateTime;
    }

    public PDRLocation(Integer x, Integer y) {
        this.x = x;
        this.y = y;
        this.updateTime = updateTime;
    }
}
